package labox.innovation.gameserver.network.clientpackets;

import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;
import labox.innovation.gameserver.network.serverpackets.FriendList;

/**
 * @author ljsh
 * @date 2010-3-30
 * @version 1.0
 * @description 请求好友列表
 */
public final class RequestFriendList extends L2GameClientPacket {
	// private static Logger _log =
	// Logger.getLogger(RequestFriendList.class.getName());
	private static final String _C__60_REQUESTFRIENDLIST = "[C] 60 RequestFriendList";

	@Override
	protected void readImpl() {
		// trigger
	}

	@Override
	protected void runImpl() {
		FuzePcInstance activeChar = getClient().getActiveChar();

		if (activeChar == null)
			return;
		
		activeChar.sendPacket(new FriendList());
	}

	@Override
	public String getType() {
		return _C__60_REQUESTFRIENDLIST;
	}
}
